#include<stdio.h>
#define ONE 1//   0000 0001
#define TWO 2//   0000 0010
#define THREE 4// 0000 0100
#define FOUR 8//  0000 1000
void print(int flag)
{
  if(flag&ONE)
  {
    printf("功能一被实现\n");
  }
  if(flag&TWO)
  {
    printf("功能二被实现\n");
  }
  if(flag&THREE)
  {
    printf("功能三被实现\n");
  }
  if(flag&FOUR)
  {
    printf("功能四被实现\n");
  }
}
int main()
{
  print(ONE);
  printf("\n");
  print(ONE|TWO);
  printf("\n");
  print(ONE|TWO|THREE|FOUR);
  printf("\n");
  return 0;
}
